package com.so206.service;

import com.github.pagehelper.PageInfo;
import com.so206.po.ProxyList;
import com.so206.po.ProxyRecord;
import com.so206.po.ext.ProxyCountModel;
import com.so206.po.ext.ProxySelectExt;

import java.util.List;

public interface ProxyService {

    PageInfo<ProxySelectExt> find_by_page(Integer page, Integer rows, Long uid, Integer status, String user);

    Long save_proxy(ProxyList proxyList);

    ProxyList find_proxy_by_id(Long id);

    void update_proxy(ProxyList proxyList);

    void delete_proxy(Long id);

    ProxyList find_proxy_by_uid(Long uid);

    PageInfo<ProxyRecord> find_record_by_page(Integer page, Integer rows, Long uid, Long sub_uid, Long order_id);

    ProxyRecord find_record_by_id(Long id);

    void delete_record(Long id);

    Long save_record(ProxyRecord proxyRecord);

    void update_record(ProxyRecord proxyRecord);

    List<ProxyCountModel> count_proxy(Integer status, Long uid, String timelike, String endTime);

}
